package com.jch.dm6_active_object.example;

import java.io.Serializable;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

public class Recipient implements Serializable {

    private Set<String> to = new HashSet<>();

    public void addTo(String m) {
        to.add(m);
    }

    public Set<String> getToList() {
        return (Set<String>) Collections.unmodifiableCollection(to);
    }

}
